import request from '@/utils/request'

// 查询考试或测验结果列表
export function listExamResults(query) {
  return request({
    url: '/exam/examResults/list',
    method: 'get',
    params: query
  })
}

// 查询考试或测验结果详细
export function getExamResults(id) {
  return request({
    url: '/exam/examResults/' + id,
    method: 'get'
  })
}

// 新增考试或测验结果
export function addExamResults(data) {
  return request({
    url: '/exam/examResults',
    method: 'post',
    data: data
  })
}

// 修改考试或测验结果
export function updateExamResults(data) {
  return request({
    url: '/exam/examResults',
    method: 'put',
    data: data
  })
}

// 删除考试或测验结果
export function delExamResults(id) {
  return request({
    url: '/exam/examResults/' + id,
    method: 'delete'
  })
}
